home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 July / EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso / earcd / demo / sound / converge.lha / Install_HD < prev    next >
Text File  |  1997-03-20  |  10KB  |  300 lines

  1. ; **************************************
  2. ; *                                    *
  3. ; * Install Converegence To HD         *
  4. ; *                                    *
  5. ; * $VER: Install-Convergence (24.1.97)*
  6. ; *                                    *
  7. ; * Written by Andy Gibson (SKiDZ/A51) *
  8. ; *                                    *
  9. ; * Copyright © 1997 AGAS Productions  *
  10. ; * All Rights Reserved                *
  11. ; *                                    *
  12. ; * Permission to AREA51 Granted - Use *
  13. ; * it freely with any produxionz  :^) *
  14. ; *                                    *
  15. ; **************************************
  16. ;
  17. ; * For AppName etc., Check out the Icons Tooltypes by clicking on the
  18. ; * HD Install Icon once and selecting Information from the Icons Menu
  19. ; * via WB.
  20. ;
  21. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  22. ;
  23. ; ********************************
  24. ; * Set up some global variables *
  25. ; ********************************
  26. ;
  27.  (set app_name        "Convergence")              ;Applictaion name
  28.  (set disk1name       "MoDZ_1")                   ;Actual name of Disk 1
  29.  (set disk2name       "MoDZ_2")                   ;Actual name of Disk 2
  30.  (set copycrmlib      "Copying CrM.library")      ;Text to display .....
  31.  (set copyptrlib      "Copying ptreplay.library") ;
  32.  (set copydflib       "Copying Diskfont.libary")  ;
  33.  (set copymathlib     "Copying Mathtrans.libary") ;
  34.  (set copymods        "Copying Modz")             ;
  35.  (set copyexe         "Copying Main Files")       ;
  36.  (set copyfonts       "Copying Font Files")       ;
  37. ;
  38. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  39. ;
  40. ; *** Set up the installation message first ...
  41.  (set install-msg
  42.    (cat ;use "cat" or "message" but "message" won't show "HELP" button!!!
  43.      "\n"
  44.      "AREA 51 PReSeNTS\n\n\n"
  45.       app_name " Vol.#1\n\n"
  46.      "Hard Disk Installer By SKiDZ/A51\n\n\n"
  47.      "Follow the on-screen text and press HELP if\n"
  48.      "you don't understand a function :^)"
  49.  ))
  50. ;
  51. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  52. ;
  53. ; *** Show the above Installation Message right here ... and HELP ...
  54.  (message install-msg
  55.        (Help
  56.              "\n\n"
  57.              "             "app_name " Vol.1 Installer Help"
  58.              "\n\n"
  59.              " This routine uses the official Commodore Installer \n"
  60.              "\n"
  61.              " You will be asked in which Dir/Partition you would \n"
  62.              " like the files to be installed into. Simply follow \n"
  63.              " the on-screen text.     All required files will be \n"
  64.              " copied to your chosen destination.    A drawer/dir \n"
  65.              " named AREA51 will be made by this installer."
  66.  ))
  67. ;
  68. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  69.  (complete 0) ; *** Simply update percentage atop screen.
  70. ;
  71. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  72. ;
  73. ; *** Check for disk 1. If not in drive, ask and wait for it.
  74.  (askdisk
  75.  (prompt    "\n\n\n\n\n" ; *** A few blank lines!!!
  76.             "Please insert the disk labeled `"
  77.              Disk1Name "'"
  78.             "\n"
  79.             "into any drive of your choice.")
  80.  (help      "\n" @askdisk-help)
  81.  (dest Disk1Name)
  82.  )
  83. ;
  84. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  85. ;
  86. ; *** Copy the required Libs to LIBS: path ...
  87. ; *** If the library is already in LIBS: This installer will check which
  88. ; *** version is there and won't copy the libs from floppy if older.  :)
  89. ;
  90.  (working   "\nChecking for required Libraries ...\n\n"
  91.             "If old versions are found, I can\n"
  92.             "copy new ones across for you :-)"
  93.  )
  94.  (copylib (prompt copyptrlib)
  95.           (help @copylib-help)
  96.           (source "MoDZ_1:libs/ptreplay.library")
  97.           (dest "LIBS:")
  98.           (optional nofail force askuser)
  99.  (confirm)
  100.  )
  101.  (complete 5)
  102.  (copylib (prompt copymathlib)
  103.           (help @copylib-help)
  104.           (source "MoDZ_1:libs/Mathtrans.library")
  105.           (dest "LIBS:")
  106.           (optional nofail force askuser)
  107.  (confirm)
  108.  )
  109.  (complete 10)
  110.  (copylib (prompt copydflib)
  111.           (help @copylib-help)
  112.           (source "MoDZ_1:libs/diskfont.library")
  113.           (dest "LIBS:")
  114.           (optional nofail force askuser)
  115.  (confirm)
  116.  )
  117.  (complete 15)
  118. ;
  119. ; *** We unpack our crunched files with CrM.Library.    I've included
  120. ; *** my own `Registerd' lib, so I want it to be copied over to peeps
  121. ; *** HD even if they have the CrM.library ;^)  Chances are that they
  122. ; *** they might have the demo version's, so mine MUST be copied! :-)
  123. ; *** It's faster than the demo version anyway, so it's a must.
  124.  (copyfiles
  125.           (prompt copycrmlib  " To Libs:")
  126.           (help @copyfiles-help)
  127.           (source "MoDZ_1:libs/CrM.library")
  128.           (dest "LIBS:")
  129.           (Optional "force") ; ** Overwrite even if Protected :^)
  130.  )
  131.  (complete 20)
  132. ;
  133. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  134. ;
  135. ; *** Copy the required fonts to FONTS: path ...
  136. ; *** Always copied even if they are in FONTS: - No problems :^)
  137. ;
  138.  (copyfiles
  139.       (prompt copyfonts  " To FONTS:")
  140.       (help @copyfiles-help)
  141.       (source "MoDZ_1:Fonts")
  142.       (dest "FONTS:")
  143.       (all)
  144.       (fonts)
  145.       (infos)
  146.       (Optional "force") ; ** Overwrite even if Protected :^)
  147.  )
  148.  (complete 30)
  149. ;
  150. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  151. ; ;
  152. ; *** Ask user where they want to install the files to ...
  153. ;
  154.  (set a51_dest
  155.  (askdir
  156.  (prompt    "Please choose where you want to install files too.\n"
  157.             "(A drawer named `AREA51' will be made for you)")
  158.  (help      "\n"
  159.             "  Please choose a path where you want to install the\n"
  160.             "  files to on your hard drive.\n\n"
  161.             "  eg. `Work:Demos'\n\n"
  162.             "  A drawer named AREA51 will be made automatically\n"
  163.             "  for you. So there is no need to do that yourself.\n\n"
  164.             "  eg. You choose `Work:Demos' to install it to.\n"
  165.             "      The files would then be installed to:\n"
  166.             "      `Work:Demos/AREA51'")
  167.  (default @default-dest) ; *** used for requestor. Default is Work:
  168.  ))
  169. ;
  170. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  171. ;
  172.  (set @default-dest a51_dest) ; *** Hold users destination here
  173. ;
  174. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  175. ;
  176. ; *** Make Directory named AREA51 in users defined path + icon ...
  177. ;
  178.  (working   "Creating the `AREA51' Directory now in "
  179.              a51_dest) ; See above for path setting...
  180.  (makedir
  181.  (tackon a51_dest "AREA51") ; *** Add AREA51 Dir to users path.
  182.  (infos) ; *** Add an icon to it also :-)
  183.  )
  184.  (complete 35)
  185. ;
  186.  (working   "Creating the `MoDZ' Directory now in `AREA51'")
  187.  (makedir
  188.  (tackon a51_dest "AREA51/MoDZ")
  189.  )
  190.  (complete 40)
  191. ;
  192. ; *** Update path to AREA51 Directory now in user's path ...
  193.  (set a51_dest (tackon a51_dest "AREA51"))
  194.  (set @default-dest a51_dest) ; Hold path of AREA51 Dir
  195. ;
  196. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  197. ;
  198. ; *** Simply copy the required files to AREA51 Directory ...
  199. ;
  200. ; *** The actual Intro Exe File ...
  201.  (copyfiles
  202.       (prompt copygame  " To " a51_dest)
  203.       (help @copyfiles-help)
  204.       (source "MoDZ_1:Convergence.exe")
  205.       (dest a51_Dest)
  206.       (Optional "force") ; ** Overwrite even if Protected :^)
  207.  )
  208.  (complete 50)
  209. ;
  210. ; *** Since the pack requires Assignments, we simply copy a script and
  211. ; *** an Icon. Uses IconX as default tool. This will run the pack with
  212. ; *** all assignments required from HD)
  213.  (copyfiles
  214.       (prompt copygame  " To " a51_dest)
  215.       (help @copyfiles-help)
  216.       (source "MoDZ_1:HD_Only/MoDZ_HD")
  217.       (dest a51_Dest)
  218.       (infos) ; New Icon to run script to add assigns and run the game.
  219.       (Optional "force") ; ** Overwrite even if Protected :^)
  220.  )
  221.  (complete 60)
  222. ;
  223. ;
  224. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  225. ; *** We need to alter path to MoDZ Directory held in AREA51 Directory.
  226. ; *** sub Directory named MoDZ was set up earlier - see above.
  227. ;
  228.  (set a51_dest2 (tackon a51_dest "MoDZ"))
  229.  (set @default-dest a51_dest2) ; Hold as destination 2
  230. ;
  231.  (copyfiles
  232.       (prompt copydata  " To " a51_dest2)
  233.       (help @copyfiles-help)
  234.       (source "ModZ_1:MoDZ")
  235.       (dest a51_Dest2)
  236.       (all)
  237.       (Optional "force") ; ** Overwrite even if Protected :^)
  238.  )
  239.  (complete 70)
  240. ;
  241. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  242. ;
  243. ; *** Check for disk 2. If not in drive, ask and wait for it.
  244.  (askdisk
  245.  (prompt    "\n\n\n\n\n" ; *** A few blank lines!!!
  246.             "Please insert the disk labeled `"
  247.              Disk2Name "'"
  248.             "\n"
  249.             "into any drive of your choice.")
  250.  (help      "\n" @askdisk-help)
  251.  (dest Disk2Name)
  252.  )
  253. ;
  254. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  255. ;
  256. ; *** Copy files from MoDZ Dir of disk 2 (MoDZ_2) to HD ...
  257.  (copyfiles
  258.       (prompt copydata  " To " a51_dest2)
  259.       (help @copyfiles-help)
  260.       (source "ModZ_2:ModZ")
  261.       (dest a51_Dest2)
  262.       (all)
  263.       (Optional "force") ; ** Overwrite even if Protected :^)
  264.  )
  265.  (complete 90)
  266. ;
  267. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  268.  
  269. ; *** Final message displayed now ...
  270. ;
  271.  (set @default-dest a51_dest) ; *** Hold users destination here
  272. ;
  273.  (complete 100)
  274. ;
  275.  (exit      "Please remove any disks before\n"
  276.             "loading from hard disk.\n\n"
  277.             "(^;  ENJOY DIZ ReLeASe  :^)\n\n"
  278.             "AREA 51 Keeping The Amiga ALIVE"
  279.  )
  280. ;
  281. ; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  282. ;
  283. ; If you use this script for your own production(s), please give me a
  284. ; credit somewhere above. That's all I ask for my hard work involved.
  285. ; Andy Gibson of AGAS Productions 1997 (aka SKiDZ/A51)
  286. ;
  287. ; Message to Slade....Modify this for future HD Installers for da mag
  288. ; if ya wish m8.  Just gimme a little credit (SKiDZ/A51) Cheerz :^)
  289. ;
  290. ; Message to anyone else.....
  291. ;
  292. ; Please help keep the Amiga alive by not spreading Copyrighted Software!
  293. ; If you have a pirated title in yer collection, scrap it NOW!!! Purchase
  294. ; the original via mail order today. It's cheap and you'll keep our great
  295. ; machine alive for another few years - maybe 8^P  SKiDZ/A51
  296. ;
  297. ;
  298.